
#ifndef __BROKER_4_CLIENT_H
#define __BROKER_4_CLIENT_H

#include <apr-1/apr.h>
#include <apr-1/apr_atomic.h>
#include "../crypt/KeyPair.h"
#include "../aprtools/APRBucketBrigade.h"
#include "TCPClient.h"
#include "Broker4.h"

class Broker4Client : public TCPClient
{
   public:
      Broker4Client(const char *ihostname, int iportno, apr_pool_t *imp) : TCPClient(ihostname, iportno, imp) {}
      ~Broker4Client() {}
      int MessageExchange(EncMessage *msg, KeyDB *kdb);
      int SendMessage(EncMessage *msg, KeyDB *kdb);
      int RecvMessage(EncMessage *msg, KeyDB *kdb);
};

#endif
